<template>
  <div>
    <home-header :seller="seller"></home-header>
    <home-tab :seller="seller"></home-tab>
  </div>
</template>

<script>
import HomeHeader from './header/header.vue'
import HomeTab from './tab/tab.vue'
import axios from 'axios'

export default {
  name: 'Home',
  components: {
    HomeHeader,
    HomeTab
  },
  data () {
    return {
      seller: {}
    }
  },
  mounted () {
    axios.get('/api/data.json')
      .then((res) => {
        res = res.data
        if (res) {
          this.seller = res.seller
          console.log(this.seller)
        }
      })
  }
}
</script>

<style>
</style>
